﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZL.Web.Utility;
using ZL.Web.Utility.Cache;
using ZLWeb.WebApiEntityBase.RedisEntity;

namespace ZLWeb.WebApiInfrastructure.Filter
{
    public class DbAccidFinder : IAccidFinder
    {
        public string Passport { get; set; }
        public string PassportType { get; set; }
        public DbAccidFinder(string PassportType, string Passport)
        {
            this.Passport = Passport;
            this.PassportType = PassportType;
        }

        public AccidModel GetAccid()
        {
            AccidModel Accid= SERedisHelper.Get<AccidModel>(PassportType + Passport);
            return Accid;
        }

    
    }
}
